package bean;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

@Component
public class Order {
    @Value("10000")
    private String no;
    @Value("20241224")
    private String data;

    public Order(String no, String data) {
        this.no = no;
        this.data = data;
    }

    public Order() {
    }

    public String getNo() {
        return no;
    }

    public void setNo(String no) {
        this.no = no;
    }

    public String getData() {
        return data;
    }

    public void setData(String data) {
        this.data = data;
    }

    @Override
    public String toString() {
        return "Order{" +
                "no='" + no + '\'' +
                ", data='" + data + '\'' +
                '}';
    }
}
